package com.my.ecommercesystem.dao;

import com.github.pagehelper.Page;
import com.my.ecommercesystem.dto.OrderDto;
import com.my.ecommercesystem.entity.Order;
import com.my.ecommercesystem.entity.Order_Item;

import java.util.List;

public interface OrderDao {
Page<OrderDto> findAllOrder(Integer user_id);

    /**
     * 查找用户订单数量
     * @return
     */
    long countOrderByUserId(Integer user_id);

    List<Order_Item> getAllItemByOrderCode(String code);
    int updateOrderStatus(String status,String code);
}
